<div class="grid_7">
    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">Paypal Management  

            </a>
        </h2>
        <div class="block" >

            <fieldset>
                <legend>Paypal Management : </legend>
                <div class="field" >
                    <?php
                    if ($this->session->flashdata('message')) {
                        echo '<font color="red">' . $this->session->flashdata('message') . '</font>';
                    }
                    ?> 
                </div>
                <div class="field" style="float:left">
                    <form name="paypal" action="<? base_url(); ?>autho_update" method="post">
                        <label>User Id </label>
                        <input name="auth_user_id" type="text" value="<?= $auth_user; ?>" size="50"/>
                        <label>Api Login Id </label>
                        <input name="auth_Api_id" type="text" value="<?= $auth_api; ?>" size="50"/>
                        <label>Transaction Key</label>
                        <input name="auth_transaction_key" type="text" value="<?= $auth_transaction_key; ?>" size="50"/>
                        <label>Status</label>
                        <input name="auth_status" type="radio" value="1" <?php if ($auth_status == '1')
                        echo 'checked=cheked' ?>/>Inactive <input name="auth_status" type="radio" value="51" <?php if ($auth_status == '51')
                        echo 'checked=cheked' ?>/> Active
                        <label>&nbsp;</label>
                        <input type="submit" name="paypal" value="Submit"/>
                    </form>
                </div>
            </fieldset>


        </div>
        <div class="block">
            <?php
            include_once APPPATH . '../anet_php_sdk/AuthorizeNet.php';
            $url = base_url() . 'payment_gateway/paypal';
            $api_login_id = '7Kuxc6D4Tz';
            $transaction_key = '3J7K43H3wqMg78EW';
            $md5_setting = 'mcajoydeb123'; // Your MD5 Setting
            $amount = "5.99";
            AuthorizeNetDPM::directPostDemo($url, $api_login_id, $transaction_key, $amount, $md5_setting);
            ?>
        </div>
    </div> <!-- END OF BOX -->
</div>

